import {createRouter,createWebHashHistory} from 'vue-router'

const router = createRouter({
    history:createWebHashHistory(),
    routes:[
        {
            path:'/',
            meta:{title:'登录'},
            component:()=>import('../view/login.vue')
        },
        {
            path:'/login',
            redirect:'/'
        },
        {
            path:'/index',
            // redirect:'/home',
            meta:{title:'盛博灿科技'},
            component:()=>import('../view/index.vue'),
            children:[
                {
                    path:'/home',
                    meta:{title:'首页'},
                    component:()=>import('../view/home.vue')
                },
                {
                    path:'/navigation',
                    meta:{title:'导航管理'},
                    component:()=>import('../view/navigation.vue')
                },
                {
                    path:'/basic/product',
                    meta:{title:'产品管理'},
                    component:()=>import('../view/basic/product.vue')
                },
                {
                    path:'/basic/service',
                    meta:{title:'服务管理'},
                    component:()=>import('../view/basic/service.vue')
                },
                {
                    path:'/basic/case',
                    meta:{title:'案例管理'},
                    component:()=>import('../view/basic/case.vue')
                },
                // {
                //     path:'/basic/evaluate',
                //     meta:{title:'评价管理'},
                //     component:()=>import('../view/basic/evaluate.vue')
                // },
                {
                    path:'/basic/news',
                    meta:{title:'新闻动态管理'},
                    component:()=>import('../view/basic/news.vue')
                },
                {
                    path:'/content/company',
                    meta:{title:'公司信息维护'},
                    component:()=>import('../view/content/company.vue')
                },
                {
                    path:'/content/swiper',
                    meta:{title:'轮播图管理'},
                    component:()=>import('../view/content/swiper.vue')
                },
                {
                    path:'/content/question',
                    meta:{title:'用户质询设置'},
                    component:()=>import('../view/content/question.vue')
                },
                {
                    path:'/content/information',
                    meta:{title:'用户信息管理'},
                    component:()=>import('../view/content/information.vue')
                },
            ]
        }
    ]
})

export default router